"""
@File    :   exceptions.py
@Time    :   2024/03/03 12:09:31
@Author  :   Qrj
@Email   :   923207736@qq.com
@description   :   Token相关的异常类
"""

from src.enums.http_response_code import HttpResponseEnum
from src.exceptions.base import AppException

# access_token过期异常
access_token_expired_exception = AppException(HttpResponseEnum.NOT_AUTH.value)

# refresh_token过期异常
refresh_token_expired_exception = AppException(
    HttpResponseEnum.REFRESH_TOKEN_EXPIRED.value
)

# 菜单权限不足异常
menu_permission_not_enough_exception = AppException(
    HttpResponseEnum.NOT_PERMISSION.value
)
